package cn.com.surker.weight.dao;

import cn.com.surker.weight.entity.WeightErrorOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 过磅登记异常表 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2023-04-20
 */
public interface WeightErrorOrderDao extends BaseMapper<WeightErrorOrder> {

    /**
     * 查询最后打卡的材料调度
     * @return
     */
    List<Map<String, Object>> findMaterialUser();
    /**
     * 查询最后打卡的材料调度
     * @return
     */
    List<Map<String, Object>> findMaterialUserV1(String startTime);

    /**
     * 根据车牌更新未审核订单
     * @param carNo 车牌
     * @return
     */
    Integer updateWaitExamine(String carNo);

    /**
     * 查询未审核订单
     * @return
     */
    List<WeightErrorOrder> findUnExamine(String startTime, String endTime);

    /**
     * 查询未审核订单
     * @param openid
     * @param phone
     * @param carNo
     * @param supplierId
     * @param stationId
     * @param startTime
     * @param endTime
     * @return
     */
    List<WeightErrorOrder> findUnExamineV1(String openid, String phone, String carNo, Integer supplierId,
                                           Integer stationId, String startTime, String endTime);


}
